/*
*
* PlotObject
*
* This class is meant to be a superclass for any objects that get plotted
*
*/
class PlotObject {
  
  // attributes
  boolean visible = true;
  
  // method for converting latitude and longitude to xy coordinates
  // input is array with longitude in 0 position and latitude in 1 position
  // output is x coordinate in 0 position, latitude in 1 position
  float[] convLL(float[] latLong) {
    
    float[] out = new float[2];
    // note: latLong should be formatted with long first
    //out[0] = width * (latLong[0] - longMin) / (longMax - longMin);
    out[0] = (width * latLong[0] - width * longMin) / (longMax - longMin);
    //out[1] = height - height * (latLong[1] - latMin) / (latMax - latMin);
    out[1] = height - (height * latLong[1] - height * latMin) / (latMax - latMin);
    
    return out;
    
  } // convLL method
  
  
} // class
